package com.zenchn.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 关键信息变更日志对象
 *
 * @author dingxinfa
 * @date 2020-05-20 11:34
 */
@ApiModel(value="关键信息变更日志对象",description="关键信息变更日志对象")
public class TSysCriticalOperatingLog implements Serializable {
    private static final long serialVersionUID = -101845882658415595L;

    @ApiModelProperty(value="日志ID")
    private String logId;

    @ApiModelProperty(value="访问IP")
    private String accessIp;

    @ApiModelProperty(value="访问位置(来源)")
    private String accessLocation;

    @ApiModelProperty(value="操作时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operTime;

    @ApiModelProperty(value="操作人账号ID")
    private String operAccountId;

    @ApiModelProperty(value="操作人账号")
    private String operAccount;

    @ApiModelProperty(value="操作人姓名")
    private String operRealName;

    @ApiModelProperty(value="操作业务模块")
    private String operModule;

    @ApiModelProperty(value="操作详情")
    private String operDetail;

    @ApiModelProperty(value="操作类型")
    private String operAction;

    @ApiModelProperty(value="备注")
    private String memo;

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId == null ? null : logId.trim();
    }

    public String getAccessIp() {
        return accessIp;
    }

    public void setAccessIp(String accessIp) {
        this.accessIp = accessIp == null ? null : accessIp.trim();
    }

    public String getAccessLocation() {
        return accessLocation;
    }

    public void setAccessLocation(String accessLocation) {
        this.accessLocation = accessLocation == null ? null : accessLocation.trim();
    }

    public LocalDateTime getOperTime() {
        return operTime;
    }

    public void setOperTime(LocalDateTime operTime) {
        this.operTime = operTime;
    }

    public String getOperAccountId() {
        return operAccountId;
    }

    public void setOperAccountId(String operAccountId) {
        this.operAccountId = operAccountId == null ? null : operAccountId.trim();
    }

    public String getOperAccount() {
        return operAccount;
    }

    public void setOperAccount(String operAccount) {
        this.operAccount = operAccount == null ? null : operAccount.trim();
    }

    public String getOperRealName() {
        return operRealName;
    }

    public void setOperRealName(String operRealName) {
        this.operRealName = operRealName == null ? null : operRealName.trim();
    }

    public String getOperModule() {
        return operModule;
    }

    public void setOperModule(String operModule) {
        this.operModule = operModule == null ? null : operModule.trim();
    }

    public String getOperDetail() {
        return operDetail;
    }

    public void setOperDetail(String operDetail) {
        this.operDetail = operDetail == null ? null : operDetail.trim();
    }

    public String getOperAction() {
        return operAction;
    }

    public void setOperAction(String operAction) {
        this.operAction = operAction == null ? null : operAction.trim();
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logId=").append(logId);
        sb.append(", accessIp=").append(accessIp);
        sb.append(", accessLocation=").append(accessLocation);
        sb.append(", operTime=").append(operTime);
        sb.append(", operAccountId=").append(operAccountId);
        sb.append(", operAccount=").append(operAccount);
        sb.append(", operRealName=").append(operRealName);
        sb.append(", operModule=").append(operModule);
        sb.append(", operDetail=").append(operDetail);
        sb.append(", operAction=").append(operAction);
        sb.append(", memo=").append(memo);
        sb.append("]");
        return sb.toString();
    }
}